package com.yg.entity.singleTemplates;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 对应sheet09，此表为课程建设表
 * </p>
 *
 * @author YingGu
 * @since 2020-11-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "CourseBuild对象", description = "对应sheet09，此表为课程建设表")
public class CourseBuild implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "课程建设id")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "课程名称")
    @ExcelProperty("课程名称")
    private String name;

    @ApiModelProperty(value = "课程建设负责人")
    @ExcelProperty("课程建设团队负责人")
    private String head;

    @ApiModelProperty(value = "课程建设队员")
    @ExcelProperty("课程建设队员")
    private String players;

    @ApiModelProperty(value = "建设开始时间")
    @DateTimeFormat("yyyy.MM")
    @ExcelProperty("建设开始时间")
    private String start;

    @ApiModelProperty(value = "建设结束时间")
    @DateTimeFormat("yyyy.MM")
    @ExcelProperty("建设结束时间")
    private String end;

    @ApiModelProperty(value = "建设总经费（万）")
    @ExcelProperty("建设总经费（万元）")
    private Integer fund;

    @ApiModelProperty(value = "课程建设级别：0：省级，1：校级")
    @ExcelProperty("课程建设级别")
    private String level;

    @ApiModelProperty(value = "课程类型：0:在线开放课程，1:线上线下混合式一流，2:线下一流，3:社会实践一流")
    @ExcelProperty("课程建设类型")
    private String category;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private Integer deleted;

}
